<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>

<html>
	<head>
		<link rel="icon" type="image/png" href="favicon.png" >
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>Login into devboard</title>
		<script type="text/javascript" src="js/Registration.js"></script>
		<link rel="stylesheet" href="css/Global.css" type="text/css">
		<link rel="stylesheet" href="css/Login.css" type="text/css">
	</head>
	<body>
		<span id="tip">better look in firefox, chrome<br />don't use ie</span>
		<div id="content" class="Popup">
			<img src="css/logo.png" width="300" height="58">
			<%
			String error="";
			if(request.getParameter("logFail")!=null&&request.getParameter("logFail").equals("true")){
				error="Login fail! Please try again!";
			}
			%>
			<div id="error" style="color:red"><%=error %></div>
			<form name="logForm" action="Main.jsp" method="post">
				<table>
					<tr><td>Login:</td><td><input type="text" name="email" onfocus="cleanElement()"></td></tr>
					<tr><td>Password:</td><td><input type="password" name="password" onfocus="cleanElement()"></td></tr>
				</table>
				<input type="submit" value="login">
				<input type="button" value="Registration" onclick="window.location='Registration.jsp'">
			</form>
		</div>
	</body>
</html>